# @shuaige : 陈世玉
# @name :Data_analysis.py
# @time :2024/9/19 下午10:00
import urllib.request
url="https://www.baidu.com/"
User_Agent="Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36 Edg/128.0.0.0"
headers={"User-Agent":User_Agent}
request=urllib.request.Request(url=url,headers=headers)#定制请求头
response=urllib.request.urlopen(request) #模拟浏览器请求
html=response.read().decode("utf-8") # 解码
print(html)


